### 请忽视这个脚本，这是个草稿纸，请不要执行
exit 0


# 创建自己的网络
docker network create --subnet=172.18.0.0/16 yoga-network


docker network rm yoga-network
# 创建新的容器实例

docker build -t postgresyoga .
docker build -t apiyoga .
docker build -t nginxyoga .


docker run -d --name nginxYoga --network yoga-network -p 80:80 -v ./conf/nginx.conf:/etc/nginx/nginx.conf  nginxyoga
docker run -d --name postgresYoga --network yoga-network --ip 172.18.0.5 postgresyoga
docker run -d --name apiYoga --network yoga-network --ip 172.18.0.6 apiyoga

docker run -it --name apiYoga --network yoga-network --ip 172.18.0.6 apiyoga


docker rm postgresYoga
docker rmi postgresyoga

docker rm apiYoga
docker rmi apiyoga

docker exec -it nginxYoga bash

apt update
apt install nano